The H5T_COMPOUND_CREATE function creates a compound datatype object.
Result = H5T_COMPOUND_CREATE(Datatype_id, Name)
Returns a long integer containing the identifier of the new compound datatype.
Note: Datatype identifiers created by this function should be released with H5T_CLOSE.
A long integer or array of long integers containing the datatype identifiers to use when creating the compound datatype. The number of elements in Datatype_id must match the number of elements in Name.
A scalar string or string array containing the names to use when creating the compound datatype. The number of elements in Name must match the number of elements in Datatype_id.
None
dt1 = H5T_ENUM_CREATE()
H5T_ENUM_SET_DATA, dt1, ['Radar_1', 'Radar_2'], [1, 2]
dt2 = H5T_IDL_CREATE(1ul)
dt = H5T_COMPOUND_CREATE([dt1, dt2], ['Radar_Id', 'Ctrl_Num'])
6.3 |
Introduced |
H5T_ARRAY_CREATE, H5T_IDL_CREATE, H5T_CLOSE